
package com.microsoft.schemas.office.project.server.webservices.projectrelationsdataset;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for anonymous complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType>
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;choice maxOccurs="unbounded" minOccurs="0">
 *         &lt;element name="ProjectRelations">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;element name="ProjectUID" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="ProjectName" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="RelatedProjectUID" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="RelatedProjectName" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="Relationship" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *       &lt;/choice>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "projectRelations"
})
@XmlRootElement(name = "ProjectRelationsDataSet")
public class ProjectRelationsDataSet {

    @XmlElement(name = "ProjectRelations")
    protected List<ProjectRelationsDataSet.ProjectRelations> projectRelations;

    /**
     * Gets the value of the projectRelations property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the projectRelations property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getProjectRelations().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link ProjectRelationsDataSet.ProjectRelations }
     * 
     * 
     */
    public List<ProjectRelationsDataSet.ProjectRelations> getProjectRelations() {
        if (projectRelations == null) {
            projectRelations = new ArrayList<ProjectRelationsDataSet.ProjectRelations>();
        }
        return this.projectRelations;
    }


    /**
     * <p>Java class for anonymous complex type.
     * 
     * <p>The following schema fragment specifies the expected content contained within this class.
     * 
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;sequence>
     *         &lt;element name="ProjectUID" type="{http://www.w3.org/2001/XMLSchema}string"/>
     *         &lt;element name="ProjectName" type="{http://www.w3.org/2001/XMLSchema}string"/>
     *         &lt;element name="RelatedProjectUID" type="{http://www.w3.org/2001/XMLSchema}string"/>
     *         &lt;element name="RelatedProjectName" type="{http://www.w3.org/2001/XMLSchema}string"/>
     *         &lt;element name="Relationship" type="{http://www.w3.org/2001/XMLSchema}int"/>
     *       &lt;/sequence>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "projectUID",
        "projectName",
        "relatedProjectUID",
        "relatedProjectName",
        "relationship"
    })
    public static class ProjectRelations {

        @XmlElement(name = "ProjectUID", required = true)
        protected String projectUID;
        @XmlElement(name = "ProjectName", required = true, defaultValue = "")
        protected String projectName;
        @XmlElement(name = "RelatedProjectUID", required = true)
        protected String relatedProjectUID;
        @XmlElement(name = "RelatedProjectName", required = true, defaultValue = "")
        protected String relatedProjectName;
        @XmlElement(name = "Relationship", defaultValue = "0")
        protected int relationship;

        /**
         * Gets the value of the projectUID property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getProjectUID() {
            return projectUID;
        }

        /**
         * Sets the value of the projectUID property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setProjectUID(String value) {
            this.projectUID = value;
        }

        /**
         * Gets the value of the projectName property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getProjectName() {
            return projectName;
        }

        /**
         * Sets the value of the projectName property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setProjectName(String value) {
            this.projectName = value;
        }

        /**
         * Gets the value of the relatedProjectUID property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getRelatedProjectUID() {
            return relatedProjectUID;
        }

        /**
         * Sets the value of the relatedProjectUID property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setRelatedProjectUID(String value) {
            this.relatedProjectUID = value;
        }

        /**
         * Gets the value of the relatedProjectName property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getRelatedProjectName() {
            return relatedProjectName;
        }

        /**
         * Sets the value of the relatedProjectName property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setRelatedProjectName(String value) {
            this.relatedProjectName = value;
        }

        /**
         * Gets the value of the relationship property.
         * 
         */
        public int getRelationship() {
            return relationship;
        }

        /**
         * Sets the value of the relationship property.
         * 
         */
        public void setRelationship(int value) {
            this.relationship = value;
        }

    }

}
